// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.LogisticsReconciliation;
import com.fowo.api.model.logistics.reconciliation.LogisticsReconciliationItemVo;
import com.fowo.api.model.logistics.reconciliation.LogisticsReconciliationSearchParamPo;
import com.fowo.api.model.logistics.reconciliation.LogisticsReconciliationVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface LogisticsReconciliationMapper
  extends BaseMapper<LogisticsReconciliation> {
  Page<LogisticsReconciliationItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") LogisticsReconciliationSearchParamPo search
  );
  List<OptionItem<LogisticsReconciliationItemVo>> searchOptions(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );
  List<LogisticsReconciliationItemVo> search(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );
  Long getIdBySalesoutboundorder(
    @Param("salesoutboundorder") String salesoutboundorder
  );

  List<Long> getIdsBySalesoutboundorder(@Param("list") List<String> list);

  String getSalesoutboundorderById(@Param("id") Long id);

  List<Map<String, Object>> getSalesoutboundorderByIds(
    @Param("ids") List<Long> ids
  );
  LogisticsReconciliationVo selectVoById(@Param("id") Long id);
  /**
   * 待确认
   */
  List<LogisticsReconciliationItemVo> waitData(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );

  /**
   * 获取待确认编号列表
   */
  List<Long> waitDataIds(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );

  /**
   * 获取待确认的总数
   */
  Long waitDataCount(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );

  /**
   * 待确认分页
   */
  Page<LogisticsReconciliationItemVo> waitDataPage(
    @Param("page") Page page,
    @Param("search") LogisticsReconciliationSearchParamPo search
  );
  Date waitDataLastUpdateTime(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );
  /**
   * 已确认
   */
  List<LogisticsReconciliationItemVo> confirmeddata(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );

  /**
   * 获取已确认编号列表
   */
  List<Long> confirmeddataIds(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );

  /**
   * 获取已确认的总数
   */
  Long confirmeddataCount(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );

  /**
   * 已确认分页
   */
  Page<LogisticsReconciliationItemVo> confirmeddataPage(
    @Param("page") Page page,
    @Param("search") LogisticsReconciliationSearchParamPo search
  );
  Date confirmeddataLastUpdateTime(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );
  /**
   * 已删除
   */
  List<LogisticsReconciliationItemVo> deletedata(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );

  /**
   * 获取已删除编号列表
   */
  List<Long> deletedataIds(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );

  /**
   * 获取已删除的总数
   */
  Long deletedataCount(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );

  /**
   * 已删除分页
   */
  Page<LogisticsReconciliationItemVo> deletedataPage(
    @Param("page") Page page,
    @Param("search") LogisticsReconciliationSearchParamPo search
  );
  Date deletedataLastUpdateTime(
    @Param("search") LogisticsReconciliationSearchParamPo search
  );
}
